package com.choice;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class enroll_q extends Activity implements OnClickListener{

	Button btn_multiple_choice, btn_picture, btn_sentence, btn_calendar;
	Intent intent;
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.enroll_q);
	
	    btn_multiple_choice = (Button) findViewById(R.id.enroll_q_btn_multichoice);
        btn_picture = (Button) findViewById(R.id.enroll_q_btn_picture);
        btn_sentence = (Button) findViewById(R.id.enroll_q_btn_sentence);
        btn_calendar = (Button) findViewById(R.id.enroll_q_btn_calendar);
        
        btn_multiple_choice.setOnClickListener(this);
        btn_picture.setOnClickListener(this);
        btn_sentence.setOnClickListener(this);
        btn_calendar.setOnClickListener(this);
	}
	
	
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.enroll_q_btn_multichoice:
			intent = new Intent(enroll_q.this, enroll_q_multi.class);	
			break;
		case R.id.enroll_q_btn_picture:
			intent = new Intent(enroll_q.this, enroll_q_pic.class);
			break;
		case R.id.enroll_q_btn_sentence:
			intent = new Intent(enroll_q.this, enroll_q_short.class);	
			break;
		case R.id.enroll_q_btn_calendar:
			intent = new Intent(enroll_q.this, enroll_q_cal.class);
			break;
		default:
			break;
		}
		startActivity(intent);
	
	}

}
